/**
 * Created by Zhang JiRen
 * @date 2022/7/8 0008
 */
import request from "@/utils/request";

const org_create = params => {
  return request({
    url: "/api/v1/org/create",
    method: "post",
    data: params
  });
};
const org_delete = params => {
  return request({
    url: "/api/v1/org/delete",
    method: "get",
    data: params
  });
};
const org_users = params => {
  return request({
    url: "/api/v1/org/users",
    method: "get",
    data: params
  });
};
const org_getall = params => {
  return request({
    url: "/api/v1/org/getall",
    method: "get",
    data: params
  });
};
const org_name_list = () => {
  return request({
    url: "/api/v1/org/name/list",
    method: "get",
    hidetoast: true
  });
};
const org_disable = params => {
  return request({
    url: "/api/v1/org/disable",
    method: "get",
    data: params
  });
};
const org_undisable = params => {
  return request({
    url: "/api/v1/org/undisable",
    method: "get",
    data: params
  });
};
const org_info = params => {
  return request({
    url: "/api/v1/org/info",
    method: "post",
    data: params
  });
};
const org_resetaccesskey = params => {
  return request({
    url: "/api/v1/org/resetaccesskey",
    method: "get",
    data: params
  });
};
const access_key_get = params => {
  return request({
    url: "/api/v1/org/access_key/get",
    method: "get",
    data: params
  });
};
const org_resetkeypair = params => {
  return request({
    url: "/api/v1/org/resetkeypair",
    method: "get",
    data: params
  });
};
const cert_get = params => {
  return request({
    url: "/api/v1/org/cert/get",
    method: "get",
    data: params
  });
};
const org_setemail = params => {
  return request({
    url: "/api/v1/org/setemail",
    method: "post",
    data: params
  });
};

export default {
  org_create,
  org_delete,
  org_users,
  org_getall,
  org_name_list,
  org_disable,
  org_undisable,
  org_info,
  org_resetaccesskey,
  access_key_get,
  org_resetkeypair,
  cert_get,
  org_setemail
};
